<!DOCTYPE html>
<html>
<head>
	<title>我的购物车</title>
	<meta charset="utf-8" />
	<meta name="author" content="m.wine22.com">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">

	<link rel="stylesheet" type="text/css" href="/css/base.css" charset="UTF-8" />
	<link rel="stylesheet" type="text/css" href="/css/cart.css" />
</head>

<body>
	<#assign title="购物车">
	<#include "/common/header.html">
	<#if carts?? && carts?size gt 0>
	<div class="cart-list">
	 	<ul>
	 		<#list carts as item>
			<li class="clear" cartId=${(item.id)!0}>
				<div class="cart-list-check">
					<span class="cart-list-check-icon-yes" checked="true"></span>
				</div>
				<div class="cart-list-img"><img src="${(item.mainImage)!""}" alt="${(item.wareName)!""}"/></div>
				<div class="cart-list-info">
					<div>${(item.wareName)!""}</div>
					<div><#if item.pricePromotional??>&yen;${(item.pricePromotional)?string('0.00')}<#else>--</#if></div>
					<div class="cart-list-info-num" cartId="${(item.id)!0}">
						<div class="cart-list-info-num-div cart-list-info-num-subtraction">-</div>
						<input class="cart-list-info-num-input" value="${(item.number)!0}" name="prod_num" id="num-${(item.id)!0}" price="<#if item.pricePromotional??>${(item.pricePromotional)?string('0.00')}<#else>0</#if>" score="${(item.score)!0}" checked="true">
						<div class="cart-list-info-num-div cart-list-info-num-addition">+</div>
					</div>
					<div class="cart-list-info-del" cartId="${(item.id)!0}">
						<span class="cart-list-info-del-icon"></span>
					</div>
				</div>
			</li>
			</#list>
		</ul>
		<div class="cart-list-tip">温馨提示：请核对好商品信息，具体价格等信息请以结算页数据为准！</div>
	</div>
	</#if>
	
	<div id="prod-no" style="display:<#if carts?? && carts?size gt 0>none<#else>block</#if>;">
		<div class="icon-cart">
			<span class="icon-cart-no"></span>
			<p>您的购物车暂时没有商品</p>
			<p>&nbsp;</p>
			
			<p><a href='/ware/list.html'>点我挑选喜欢的商品</a></p>
			<p>&ensp;</p>
			<p>&ensp;</p>
		</div>
	</div>
	<div id="tools-btm-common"  style="display:<#if carts?? && carts?size gt 0>none<#else>block</#if>;">
	<#assign toolsBtmActivy="cart">
	<#include "/common/footor.html">
	</div>
	
	<script type="text/javascript" src="/js/layer/layer.js"></script>
	<script type="text/javascript" src="/js/common.js"></script>
	<script type="text/javascript" src="/js/biz/cart.js"></script>
	
	<!-- 底部按钮 -->
	<#if carts?? && carts?size gt 0>
	<div id="tools-btm" class="tools-btm">
		<div class="tools-btm-left">
			<span class="focus-info"><span id="cartNum">0</span>件商品，可积<span id="totalScore">0</span>分：</span><br />
			<span class="tools-btm-price">&yen;0.00</span>
		</div>
		<div class="tools-btm-right">
			<a href="/ware/list.html" class="yellow-color add_cart">继续购物</a>
			<a href="javascript:void(0);" id="settlementBtn" class="red-color directorder">去结算</a>
		</div>
	</div>
	<form id="settlementForm" action="/cart/settlement.html" method="POST" style="display:none;">
	 		<#list carts as item>
		<input type ="hidden" name="id" value="${item.id}" id="settlement_${item.id}">
		</#list>
	</form>
		</#if>
</body>
</html>